Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents

Application-Defined Routine

This section describes a routine your application might need to define when using the 3D Viewer.

TQ3ViewerDrawingCallbackMethod

You can define a drawing completion callback routine to perform any necessary post-drawing operations.

MAC OS VERSION

typedef OSErr (*TQ3ViewerDrawingCallbackMethod) (
                     TQ3ViewerObject    theViewer,
                     const void         *data);

WINDOWS VERSION

typedef TQ3Status (*TQ3ViewerDrawingCallbackMethod) (
                     TQ3ViewerObject    theViewer,
                     const void         *data);

PARAMETERS

theViewer
A viewer object
data
A pointer to an application-defined block of data. Your application passes this pointer to the Q3ViewerSetDrawingCallbackMethod function when installing the drawing completion callback routine.

DESCRIPTION

Your drawing completion callback routine is called each time the 3D Viewer completes a drawing operation requested by a call to Q3ViewerDraw , Q3ViewerDrawContent , or Q3ViewerDrawControlStrip for the viewer object specified by the theViewer parameter.

You install a drawing completion callback routine by calling the Q3ViewerSetDrawingCallbackMethod function.

 


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents